package com.mm.cloud.common.core.result;

import lombok.Getter;

/**
 * 结果枚举
 *
 * @author mr
 * @since 2021-09-15
 */
@Getter
public enum ResultEnum {

    SUCCESS(ResultConstants.RESULT_SUCCESS_CODE, ResultConstants.RESULT_SUCCESS_MESSAGE),
    ERROR(ResultConstants.RESULT_ERROR_CODE, ResultConstants.RESULT_ERROR_MESSAGE);

    private final Integer code;

    private final String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
